package com.esc.mapper;

import com.esc.model.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {

    Admin selectByPrimaryKey(Integer adminid);

    int queryCount(@Param("queryId") Integer queryId);

    List<Admin> queryAdminList(@Param("start") int startIndex, @Param("size") int rows, @Param("queryId") Integer queryId);

    Admin queryAdminById(@Param("adminid") Integer adminid);

    Admin queryAdminByName(String adminname);

    void addAdmin(Admin admin);
}